package com.wcs.exam.controller.auth.resp;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * Auth-考试-考试记录-分页--响应对象
 * </p>
 *
 * @author wcs
 * @since 2024-07-10
 */
@Getter
@Setter
@Accessors(chain = true)
@Schema(description = "Auth-考试-考试记录-分页--响应对象")
public class AuthExamRecordPageResp implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "主键ID")
    private Long id;

    @Schema(description = "用户ID")
    private Long userId;

    @Schema(description = "考试类型(1：模拟考试、2：正式考试)")
    private Integer examType;

    @Schema(description = "关联ID")
    private Long relateId;

    @Schema(description = "用户作答时间(单位：秒)")
    private Integer userAnswerTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Schema(description = "交卷时间")
    private LocalDateTime submitTime;

    @Schema(description = "考试总分")
    private BigDecimal totalScore;

    @Schema(description = "用户得分")
    private BigDecimal userScore;

    @Schema(description = "考试状态(1:考试中、2:待批改、3:批改中、4:批改完成)")
    private Integer examStatus;

    @Schema(description = "合格状态(1:未知、2:合格、3:不及格)")
    private Integer passStatus;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Schema(description = "创建时间")
    private LocalDateTime gmtCreate;
}
